package com.zhanglu.fun.tookit.jwt;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;

/**
 * @description token序列化的字段
 * @Auther zhanglu
 * @Date 2017/10/16 上午9:54
 */
@Setter
@Getter
@ToString
public class TokenInfo {
    @ApiModelProperty("昵称")
    private String nickName;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty("创建时间")
    private Date createDate;
    @ApiModelProperty("到期时间")
    private Date expiresDate;
    @ApiModelProperty("权限，逗号隔开")
    private String roles;
}
